<div class="col-sm-12">
	<div class="panel panel-default mt20">
        <div class="panel-body">
            <div class="col-sm-12">
                <div class="row ">
                    <div class="col-sm-2">
                        <ui-select ng-model="searchform.place_code" theme="bootstrap">
							<ui-select-match placeholder="请选择一个场所">
								{{$select.selected.name}}
							</ui-select-match>
							<ui-select-choices repeat="item.code as item in viewarr | filter: $select.search">
								<span ng-bind-html="item.name | highlight: $select.search"></span>
							</ui-select-choices>
						</ui-select>
                    </div>
                    <div class="col-sm-2 pull-right">
                        <button class="btn btn-block btn-success" ng-click="create()">创建票种</button>
                    </div>
                    <div class="col-sm-2 pull-right">
                        <button class="btn btn-block btn-info" ng-click="load()">立即搜索</button>
                    </div>
                </div>
            </div>
        </div>
		<!--<div class="panel-body">
			<div class="form-group">
				<div class="col-xs-6">
					<div class="col-sm-6">
						<ui-select ng-model="searchform.place_code" theme="bootstrap">
							<ui-select-match placeholder="请选择一个景区">
								{{$select.selected.name}}
							</ui-select-match>
							<ui-select-choices repeat="item.code as item in viewarr | filter: $select.search">
								<span ng-bind-html="item.name | highlight: $select.search"></span>
							</ui-select-choices>
						</ui-select>
					</div>
				</div>
				<div class="col-xs-3 text-right">
					<button type="button" class="btn btn-default search" ng-click="load()">立即搜索</button>

				</div>
				<div class="col-xs-2 text-right">
					<button type="button" class="btn btn-info new" ng-click="create()">发布新票种</button>
				</div>
			</div>
		</div>-->
	</div>
	<div class="panel panel-default">
		<div class="panel-body">
			<div class="panel panel-info" ng-repeat="tkttype in objs track by $index">
				<div class="panel-heading">{{tkttype.viewname}}</div>

				<table class="table table-bordered panel-body">
					<thead>
						<tr>
							<th class="col-md-3 text-center">票种名称</th>
							<th class="col-md-1 text-center">票种编号</th>
							<th class="col-md-1 text-center">允许消票</th>
							<th class="col-md-1 text-center">票种状态</th>
							<th class="col-md-2 text-center">预定详情</th>
							<th class="col-md-3 text-center">操作</th>
						</tr>
					</thead>
					<tbody>
						<tr ng-repeat="obj in tkttype.ticketarr">
							<td class="">{{obj.name}}</td>
							<td class="text-center">{{obj.code}}</td>
							<td class="text-center">{{obj.used_state}}</td>
							<td class="text-center">{{obj.state}}</td>
							<td class="text-center">{{obj.book_info}}</td>
							<td class="text-center">
								<a ng-show="obj.state=='可用'" ng-click="start(obj.id)" class="btn btn-primary btn-xs">下架</a>
								<a ng-show="obj.state=='不可用'" ng-click="stop(obj.id)" class="btn btn-primary btn-xs">上架</a>
								<a ng-click="edit(obj.id, obj.place_code)" class="btn btn-success btn-xs">编辑</a>
								<a ng-show="obj.used_state=='不允许'" ng-click="usedstart(obj.id)" class="btn btn-primary btn-xs">允许消票</a>
								<a ng-show="obj.used_state=='允许'" ng-click="usedstop(obj.id)" class="btn btn-danger btn-xs">禁止消票</a>
							</td>
						</tr>
					</tbody>
				</table>

			</div>
			<div class="text-right" ng-show="pageFlag">
				<pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="load()" previous-text="上一页" next-text="下一页"
				 first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
				 class="m-t-none m-b">
				</pagination>
			</div>
		</div>
	</div>
</div>